﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001AB RID: 427
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeBossAvatarRelicInfo : IMessage<ChallengeBossAvatarRelicInfo>, IMessage, IEquatable<ChallengeBossAvatarRelicInfo>, IDeepCloneable<ChallengeBossAvatarRelicInfo>, IBufferMessage
	{
		// Token: 0x1700059B RID: 1435
		// (get) Token: 0x0600133C RID: 4924 RVA: 0x00036F64 File Offset: 0x00035164
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeBossAvatarRelicInfo> Parser
		{
			get
			{
				return ChallengeBossAvatarRelicInfo._parser;
			}
		}

		// Token: 0x1700059C RID: 1436
		// (get) Token: 0x0600133D RID: 4925 RVA: 0x00036F6B File Offset: 0x0003516B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeBossAvatarRelicInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700059D RID: 1437
		// (get) Token: 0x0600133E RID: 4926 RVA: 0x00036F7D File Offset: 0x0003517D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeBossAvatarRelicInfo.Descriptor;
			}
		}

		// Token: 0x0600133F RID: 4927 RVA: 0x00036F84 File Offset: 0x00035184
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossAvatarRelicInfo()
		{
		}

		// Token: 0x06001340 RID: 4928 RVA: 0x00036F97 File Offset: 0x00035197
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossAvatarRelicInfo(ChallengeBossAvatarRelicInfo other) : this()
		{
			this.avatarRelicSlotMap_ = other.avatarRelicSlotMap_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001341 RID: 4929 RVA: 0x00036FC1 File Offset: 0x000351C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossAvatarRelicInfo Clone()
		{
			return new ChallengeBossAvatarRelicInfo(this);
		}

		// Token: 0x1700059E RID: 1438
		// (get) Token: 0x06001342 RID: 4930 RVA: 0x00036FC9 File Offset: 0x000351C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<uint, ChallengeBossRelicInfo> AvatarRelicSlotMap
		{
			get
			{
				return this.avatarRelicSlotMap_;
			}
		}

		// Token: 0x06001343 RID: 4931 RVA: 0x00036FD1 File Offset: 0x000351D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeBossAvatarRelicInfo);
		}

		// Token: 0x06001344 RID: 4932 RVA: 0x00036FDF File Offset: 0x000351DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeBossAvatarRelicInfo other)
		{
			return other != null && (other == this || (this.AvatarRelicSlotMap.Equals(other.AvatarRelicSlotMap) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001345 RID: 4933 RVA: 0x00037014 File Offset: 0x00035214
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.AvatarRelicSlotMap.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001346 RID: 4934 RVA: 0x00037048 File Offset: 0x00035248
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001347 RID: 4935 RVA: 0x00037050 File Offset: 0x00035250
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001348 RID: 4936 RVA: 0x00037059 File Offset: 0x00035259
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.avatarRelicSlotMap_.WriteTo(ref output, ChallengeBossAvatarRelicInfo._map_avatarRelicSlotMap_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001349 RID: 4937 RVA: 0x00037080 File Offset: 0x00035280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.avatarRelicSlotMap_.CalculateSize(ChallengeBossAvatarRelicInfo._map_avatarRelicSlotMap_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600134A RID: 4938 RVA: 0x000370B9 File Offset: 0x000352B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeBossAvatarRelicInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.avatarRelicSlotMap_.MergeFrom(other.avatarRelicSlotMap_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600134B RID: 4939 RVA: 0x000370E7 File Offset: 0x000352E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600134C RID: 4940 RVA: 0x000370F0 File Offset: 0x000352F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.avatarRelicSlotMap_.AddEntriesFrom(ref input, ChallengeBossAvatarRelicInfo._map_avatarRelicSlotMap_codec);
				}
			}
		}

		// Token: 0x040007ED RID: 2029
		private static readonly MessageParser<ChallengeBossAvatarRelicInfo> _parser = new MessageParser<ChallengeBossAvatarRelicInfo>(() => new ChallengeBossAvatarRelicInfo());

		// Token: 0x040007EE RID: 2030
		private UnknownFieldSet _unknownFields;

		// Token: 0x040007EF RID: 2031
		public const int AvatarRelicSlotMapFieldNumber = 6;

		// Token: 0x040007F0 RID: 2032
		private static readonly MapField<uint, ChallengeBossRelicInfo>.Codec _map_avatarRelicSlotMap_codec = new MapField<uint, ChallengeBossRelicInfo>.Codec(FieldCodec.ForUInt32(8U, 0U), FieldCodec.ForMessage<ChallengeBossRelicInfo>(18U, ChallengeBossRelicInfo.Parser), 50U);

		// Token: 0x040007F1 RID: 2033
		private readonly MapField<uint, ChallengeBossRelicInfo> avatarRelicSlotMap_ = new MapField<uint, ChallengeBossRelicInfo>();
	}
}
